package co.yixiang.modules.shop.service.impl;

import co.yixiang.modules.shop.domain.YxInvestPackage;
import co.yixiang.modules.shop.repository.YxInvestPackageRepository;
import co.yixiang.modules.shop.service.YxInvestPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class YxInvestPackageServiceImpl implements YxInvestPackageService {

    @Autowired
    private YxInvestPackageRepository investPackageRepository;
    /**
     * 不分页查询所有套餐
     * @return
     */
    @Override
    public List<Map<String,Object>> findListAll() {
        List<Map<String,Object>> list=investPackageRepository.findListAll();
        return list;
    }
}
